import * as echarts from 'echarts';
export function addChart (dom,options){
    const myEcharts = echarts.init(dom)
    myEcharts.setOption(options)
    window.addEventListener('resize',()=>{
        myEcharts.resize()
    })
    return myEcharts
};
